<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<title>insert into title</title>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="Casper" content="created by 2015?10?23? ??2:31:42">
		<meta name="keywords" content="write something you want">
		<meta name="description" content="write something you want">
		<link href="icon/favico.png" rel="icon">
		<link href="css/bootstrap.css" rel="stylesheet">
	</head>
	<body>
		
		<div class="container">
			<div class="col-md-4">
				<form class="form-signin" action="UserServlet?op=userRegister" method="post">
	       			 <h2 class="form-signin-heading">用户注册    ${tips }</h2>
	       			 <label for="inputEmail" class="sr-only">邮箱</label>
	       			 <input type="text" id="inputEmail"  name="email" class="form-control" placeholder="请输入邮箱" >
	        		 <label for="inputPassword" class="sr-only">密码</label>
	        		 <input type="password" id="inputPassword" name="pass" class="form-control" placeholder="请输入密码" >
	        		 <label for="inputRePassword" class="sr-only">确认密码</label>
	        		 <input type="password" id="inputRePassword" class="form-control" placeholder="请再次输入密码" >
	        		 <label for="inputCode" class="sr-only">验证码</label>
	        		 <input type="password" id="inputCode" name="code" class="form-control" placeholder="请输入验证码" >
	        		 <img id="codeImg" src="CodeServlet" onclick="refreshCode()"><a href="">点击刷新</a>
	        		 <div class="checkbox">
	          			<label>
	           			 	<input type="checkbox" value="rememberme" name="rememberme">记住密码
	          			</label>
	       		     </div>
	        		 <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
      			</form>
			</div>
		
      		
	    </div> 
	    <script type="text/javascript">
	    	function refreshCode(){
				document.getElementById("codeImg").src ='CodeServlet?id='+new Date();    		
	    	}
	    </script>
		
		<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
		<script type="text/javascript" src="js/bootstrap.min.js"></script>
	</body>
</html>